<?php
namespace zake\foundation\able;

use zake\foundation\able\stream\DuplexAble;

/**
 * Interface ProcessAble
 * @package zake\foundation\able
 */
interface ProcessAble
{

    /**
     * 创建子进程
     * @return mixed
     *
     * @author liu.bin 2020-03-31 15:08
     */
    public function start();


    /**
     * 子进程pid
     *
     * @return int
     * @author liu.bin 2020-03-25 21:51
     */
    public function getPid();


    /**
     * 子进程编号
     * @return int
     *
     * @author liu.bin 2020-04-14 18:35
     */
    public function getProcessId();
}